<?php
// for test
$_SESSION["admin"]=true;
$_SESSION["login"]=true;

/********************************************************
* Check permission
********************************************************/
if(!(isset($_SESSION["admin"])&&$_SESSION["login"]))
	header('Location: login.php');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="../../../../Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/Templates/Untitled-2.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>CircleU - Course Added</title>
<!-- InstanceEndEditable -->
<style type="text/css">
<!--

a:link   {
text-decoration:   none;
}
a:visited   {
text-decoration:   none;
}
a:hover   {
text-decoration:   underline;
} 
.STYLE1 {
	font-size: xx-large;
	position: absolute;
}
.STYLE2 {font-size: x-large; }
.try {
	background-color: #FFFFFF;
	position: relative;
	z-index: auto;
	visibility: visible;
	clip: rect(auto,auto,auto,auto);
	width: auto;
	height: 76px;
}
.copyright {
	position: absolute;
	left: 150px;
	top: 600px;
	font-size: large;
	height: 22px;
}
.LayerImg {
	left: auto;
}
.CircleU {
	font-family: "Comic Sans MS";
	font-size: xx-large;
	font-weight: bold;
	position: relative;
	left: 20px;
	top: auto;
	height: auto;
	width: auto;
	visibility: visible;
	background-position: left;
	color: #3333FF;
}
#Title1 {
	position:absolute;
	width:1096px;
	height:60px;
	z-index:2;
	left: 9px;
	top: 6px;
}
#LayerPic {
	position:absolute;
	width:200px;
	height:115px;
	z-index:3;
	left: 15px;
	top: 105px;
}
#LayProfile {
	position:absolute;
	width:200px;
	height:196px;
	z-index:4;
	left: 13px;
	top: 239px;
}
#DivIMG {
	position: relative;
	top: 40px;
}
#LayerProfile {
	position: relative;
	left: 0px;
	top: 80px;
}
-->
</style>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
#Layer3 {
	position:absolute;
	width:1090px;
	height:115px;
	z-index:2;
	left: 13px;
	top: 83px;
}
#Layer4 {
	position:absolute;
	width:200px;
	height:115px;
	z-index:2;
	left: 16px;
	top: 82px;
}
-->
</style>
<!-- InstanceEndEditable -->
</head>

<body>
<center>
  <div id="Title1">
    <table width="1092" height="59" bgcolor="#FF3300">
      <tr>
        <td rowspan="2" class="CircleU"><div align="left"><a href="file:///C|/Program%20Files%20(x86)/Apache%20Software%20Foundation/Apache2.2/htdocs/Templates/index.php" text-decoration: none>CircleU</a></div></td>
        <td width="128"><a href="file:///C|/Program%20Files%20(x86)/Apache%20Software%20Foundation/Apache2.2/htdocs/Templates/index.php"></a></td>
        <td width="111"><div align="right"><a href="file:///C|/Program%20Files%20(x86)/Apache%20Software%20Foundation/Apache2.2/htdocs/Templates/SignOut.php">Sign Out </a></div></td>
        <td width="120"><div align="center"><a href="file:///C|/Program%20Files%20(x86)/Apache%20Software%20Foundation/Apache2.2/htdocs/Templates/ContactUs.php">Contact Us</a></div></td>
      </tr>
      <tr>
        <td><form id="form2" name="form2" method="post" action="file:///C|/Program%20Files%20(x86)/Apache%20Software%20Foundation/Apache2.2/htdocs/Templates/AdvancedSearch.php">
          <label>
            <input type="submit" name="Submit2" value="Advanced Search" />
          </label>
        </form>
        </td>
        <td colspan="2"><form id="form1" name="form1" method="post" action="file:///C|/Program%20Files%20(x86)/Apache%20Software%20Foundation/Apache2.2/htdocs/Templates/SearchResult.php">
          <label>
            <input type="text" name="SearchText" />
          </label>
          <label>
          <input type="submit" name="Submit" value="search" />
          </label>
        </form>        </td>
      </tr>
    </table>
  </div>
  <div class="copyright">
<p>Copyright @ 2011 CircleU built in University of Florida. All right reserved&#13;</p>

</div>
<div id="Layer2"><!-- InstanceBeginEditable name="EditRegion3" -->
  <div id="Layer4">
    <p>AdminID: </p>
    </div>
  <div id="Layer3">
	<center>
		<p>Course is added successfully. <br />Do you want to 
			<a href="AdminAddCourse.php"> add another course </a> or 
			<a href="AdminHome.php"> return to main menu</a>?
		</p>
	</center>
    </div>
  <!-- InstanceEndEditable --></div>
 
  
  
  <div id="Layer6">
    <div align="left" id="DivIMG">
  <?php
  echo "<img src=\"" . OCIResult( $statement, 'PROFILE_PIC' ) . "\" width=\"200\" height=\"133\" />";
  ?>
   </div>
  <div id="LayerProfile">
   <div align="left">
    <table width="200" height="200" border="1" bgcolor="#FF3300" id="profile">
      <tr>
        <td width="84"><span class="STYLE4">Department: </span></td>
        <td width="100"><?php
  echo OCIResult( $statement, 'DEPARTMENT' );
  ?></td>
      </tr>
      <tr>
        <td><span class="STYLE4">Birthday:</span></td>
        <td><?php
  echo OCIResult( $statement, 'BIRTHDAY' );
  ?></td>
      </tr>
      
      <tr>
        <td><span class="STYLE4">Hobbies:</span></td>
        <td><?php
  echo OCIResult( $statement, 'HOBBIES' );
  ?></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><span class="profile">Groups:</span></td>
       <?php echo "<td><a href=\"GroupPage.php?GID=" . OCIResult( $statement1, 'GID' ) . "\">" .
 OCIResult( $statement1, 'NAME' );
  ?></td></a>      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></div>
</div>
</center>
</body>
<!-- InstanceEnd --></html>
